package com.syuntax.trf.controller;

import com.syuntax.trf.dao.SysConfigDao;
import com.syuntax.trf.domain.SysConfig;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by wx on 2017/7/21.
 */
@Controller
@RequestMapping("/hello")
public class HelloController {

    @Resource
    private SysConfigDao sysConfigDao;

    @RequestMapping("/hello1")
    public void Hello() {
        List<String> values = new ArrayList<>();
        values.add("OFF");
        String fieldName = "value";
        Class clazz = SysConfig.class;

        List<SysConfig> sysconfigList = sysConfigDao.queryByFiledIn(clazz, fieldName, values);
        System.out.println(sysconfigList.size());
    }


}
